<?php

use yii\helpers\Url;
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <title>用户注册 - 皓夜科技-任务发布平台</title>
        <link rel="stylesheet" href="//at.alicdn.com/t/font_1462829001_0270534.css">
        <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <link rel="stylesheet" href="/css/xenon-reg.css">
        <link rel="stylesheet" href="/css/xiniu-reg.css">
        <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
        <link href="/js/ui-dialog.css" rel="stylesheet" />
        <script type="text/javascript" charset="utf-8" src="/js/dialog-plus-min.js"></script>
        <script type="text/javascript" charset="utf-8" src="/js/jquery.form.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="/js/Validform_v5.3.2_min.js"></script>
        <script type="text/javascript" charset="utf-8" src="/js/register-validate.js"></script>
    </head>
    <body id="page-reg" class="page-body login-page login-light reg-page">
        <div class="reg-container">
            <div class="row">
                <div class="col-md-8" style="float:none;margin:0 auto;">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h2 class="font-yahei">皓夜任务发布平台<span>用户注册</span></h2>
                        </div>
                        <div class="panel-body">
                            <div class="errors-container"></div>
                            <form id="regform" url="<?php Url::toRoute(["site/signup"]) ?>" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="username">登录名</label>
                                    <div class="col-sm-10">
                                        <input id="txtUserName" name="username" type="text" class="form-control input txt" placeholder="输入登录用户名" datatype="s3-50" nullmsg="请输入登录的用户名" sucmsg=" " ajaxurl="<?php echo Url::toRoute(["submitregajax", "action" => "username"]) ?>" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="password">密码</label>
                                    <div class="col-sm-10">
                                        <input id="txtPassword" name="password" type="password" class="form-control input txt" placeholder="输入登录密码" datatype="*6-20" nullmsg="请输入登录密码" errormsg="密码范围在6-20位之间" sucmsg=" " />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="repassword">重复密码</label>
                                    <div class="col-sm-10">
                                        <input id="txtPassword1" name="repassword" type="password" class="form-control input txt" placeholder="请再次输入密码" datatype="*" recheck="password" nullmsg="请再输入一次密码" errormsg="两次输入的密码不一致" sucmsg=" " />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="invite_code">邀请码</label>
                                    <div class="col-sm-10">
                                        <input id="txtCode" name="invite_code" value="<?php echo $invite_code;?>"  type="text" class="form-control input txt" placeholder="输入邀请码" datatype="s6-6" errormsg="邀请码格式不正确" nullmsg="请输入邀请码" sucmsg=" " ajaxurl="<?php echo Url::toRoute(["submitregajax", "action" => "validate_invitation"]) ?>" />
                                    </div>
                                </div>
<!--                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="truename">真实姓名</label>
                                    <div class="col-sm-10">
                                        <input id="txtTrueName" name="truename" type="text" class="form-control input txt" placeholder="输入真实姓名" datatype="s2-50" nullmsg="请输入真实姓名" sucmsg=" " />
                                    </div>
                                </div>-->
<!--                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="alipay">支付宝</label>
                                    <div class="col-sm-10">
                                        <input id="txtEmail" name="alipay" type="text" class="form-control input txt" placeholder="输入支付宝账号,输入后不可更改" datatype="*" nullmsg="输入支付宝账号" sucmsg=" " ajaxurl="<?php echo Url::toRoute(["submitregajax", "action" => "validate_alipay"]) ?>" />
                                    </div>
                                </div>-->
<!--                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="phone">手机号</label>
                                    <div class="col-sm-10">
                                        <input id="txtMobile" name="phone" type="text" class="form-control input txt" placeholder="输入手机号码" datatype="m" nullmsg="请输入手机号码" sucmsg=" " />
                                    </div>
                                </div>-->
                                <div class="form-group">
                                    <label class="col-sm-2 control-label" for="alipay">QQ号码</label>
                                    <div class="col-sm-10">
                                        <input id="txtQQ" name="qq" type="text" class="form-control input txt" placeholder="输入QQ" datatype="*" nullmsg="请输入QQ" errormsg="密码范围在6-20位之间请输入QQ" sucmsg=" " />
                                    </div>
                                </div>
                                <div class="alert alert-warning">
                                    <p>因近期有很多恶意注册发任务的人，本平台需要注册码才能注册</p>
                                    <p>请联系QQ：<strong>79693886</strong> 获取注册码</p>
                                </div>
                                <div class="form-group">
                                    <div class="clearfix" style="padding-top:20px;">
                                        <div class="col-md-6">
                                            <button type="submit" id="btnSubmit" class="btn btn-primary btn-block text-left font-yahei">立即注册</button>
                                        </div>
                                        <div class="col-md-6">
                                            <a href="<?php echo Url::toRoute(["site/login"]);?>" class="btn btn-block font-yahei">登录</a>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <script src="//cdn.bootcss.com/jquery-validate/1.15.0/jquery.validate.min.js"></script>
    </body>
</html>
